package co.edu.unal.satacredito.infrastructure.dto;

import java.io.Serializable;
import co.edu.unal.satacredito.database.entity.Brand;
import co.edu.unal.satacredito.database.entity.Establishment;


public class EstablishmentDTO implements Serializable{

	private static final long serialVersionUID = 1L;
	private String id;
    private String user;
    private String password;
    private String nameEstablishment;
    private long phoneNumber;
    private String managerFirstName;
    private String managerLastName;
    private long managerId;
    private String email;
    private Brand brand;
    private String status;
    private String managerName;

	public EstablishmentDTO() {
		
	}

	public EstablishmentDTO(Establishment establishment) {
		this.id = establishment.getId().toString();
	    this.user = establishment.getUser();
	    this.password = establishment.getPassword();
	    this.nameEstablishment = establishment.getNameEstablishment();
	    this.phoneNumber = establishment.getPhoneNumber();
	    this.managerFirstName = establishment.getManagerFirstName();
	    this.managerLastName = establishment.getManagerLastName();
	    this.managerId = establishment.getManagerId();
	    this.email = establishment.getEmail();
	    this.brand = establishment.getBrand();
	    this.status = establishment.getStatus();
	    this.managerName = establishment.getManagerFirstName()+' '+establishment.getManagerLastName();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNameEstablishment() {
		return nameEstablishment;
	}

	public void setNameEstablishment(String nameEstablishment) {
		this.nameEstablishment = nameEstablishment;
	}

	public long getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(long phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getManagerName() {
		return managerName;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public String getManagerFirstName() {
		return managerFirstName;
	}

	public void setManagerFirstName(String managerFirstName) {
		this.managerFirstName = managerFirstName;
	}

	public String getManagerLastName() {
		return managerLastName;
	}

	public void setManagerLastName(String managerLastName) {
		this.managerLastName = managerLastName;
	}

	public long getManagerId() {
		return managerId;
	}

	public void setManagerId(long managerId) {
		this.managerId = managerId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Brand getBrand() {
		return brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
